<?phpclass BannerEntity extends BannerEntityBase{	public function __construct($arrValue = null, $prefix = '')	{		if(!is_null($arrValue) && is_array($arrValue)){			parent::__construct($arrValue, $prefix);		}	}	public function getThumb()	{		return Zend_Registry::get('config')->APPLICATION_URL . '/Resources/Thumbnails/' . $this->picture;	}	public function getImage()	{			if(file_exists(UPLOADIMAGE_PATH . '/Images/' . $this->picture))		{				return Zend_Registry::get('config')->APPLICATION_URL . '/Resources/Images/' . $this->picture;			}		else 		{			return 	Zend_Registry::get('config')->APPLICATION_URL . '/Resources/Banners/' . $this->picture;		}	}	/**	 * Return width of image	 *	 * @return int	 */	public function getWidthOfThumb()	{		$path =  UPLOADIMAGE_PATH . '/Thumbnails/' . $this->picture;		list($w, $h) = CommonUtils::imageFormatSize($path, 120, 196);		return (int) $w;	}}